package com.tuzhi.sys.web.controller.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@ApiModel("用户登录实体类")
@Data
public class LoginVO {

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名",required = true)
    private String username;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "密码",required = true)
    private String password;

    /**
     * 验证码
     */
    private String code;

    /**
     * 唯一标识
     */
    private String uuid;

    /**
     * 登录标识(默认情况：0-网页端登录 1-移动端登录)
     */
    @ApiModelProperty(value = "登录方式")
    private int logintype;

    /**
     * 登录标识(默认情况：0-网页端登录 1-移动端登录)
     */
    @ApiModelProperty(hidden = true)
    @Pattern(regexp = "^1([0-9])\\d{10}$", message = "手机号")
    private String mobile;

}
